#!/bin/bash

# dreamy-trac - Automatically install and manage Trac on DreamHost
# Author: Petar Maric <http://www.petarmaric.com>
# Licence: BSD
#
# DON'T CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU'RE DOING!

# Version of Python used for installing dreamy-trac 
PYTHON_VERSION=PYTHON_VERSION_TEMPLATE

# Root directory for all user-specific libraries and programs
PKG_DIR=PKG_DIR_TEMPLATE

# Root directory for the Trac project
TRAC_PROJECT_DIR=TRAC_PROJECT_DIR_TEMPLATE


# Export bash variables required by trac.fcgi
export HOME="/home/USER_TEMPLATE"
export PATH="${PKG_DIR}/bin:${PATH}"
export LD_LIBRARY_PATH="${PKG_DIR}/lib"
export PYTHONPATH="${PKG_DIR}/lib/python${PYTHON_VERSION}/site-packages"
export TRAC_ENV="${TRAC_PROJECT_DIR}"

exec ${PKG_DIR}/share/trac/cgi-bin/trac.fcgi

